package com.itheima.dao.impl;

import com.itheima.dao.UserDao;
import org.springframework.stereotype.Repository;

/**
 * @author 张义
 * @describe:
 * @date 2021/06/19
 */
// <bean id="userDao" class="com.itheima.dao.impl.UserDaoImpl"> </bean>  与 Component 注解
//  Repository 和 Component 作用一样 , Repository 指代是 Dao 层
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    public void save() {
        System.out.println("UserDao : save running");
    }
}
